package com.example.zhangxin.myhuatuob2b.view;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bigkoo.convenientbanner.CBPageAdapter;

import org.xutils.x;

/**
 * Created by ZhangXin on 2016/10/14.
 */

public class LocalImageHolderView implements CBPageAdapter.Holder<String> {

    private ImageView imageView;

    @Override
    public View createView(Context context) {
        imageView = new ImageView(context);
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);
        return imageView;
    }

    @Override
    public void UpdateUI(Context context, int position, String data) {
        x.image().bind(imageView,data);
    }
}
